package cn.fastoo.common.entity;

import cn.fastoo.common.sampleframe.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author daniel.chan
 */
@Entity
@Table(name = "recharge")
public class Recharge extends BaseEntity {

	// 订单编号
	@Column(name = "recharge_no")
	private String rechargeNo;
	// 订单金额
	@Column(name = "total_price")
	private Double totalPrice;
	// 状态 -1已取消 0未支付 1已支付
	@Column(name = "status")
	private Integer status;
	// 支付交易号
	@Column(name = "trade_no")
	private String tradeNo;
	// 当前余额
	@Column(name = "balance")
	private Double balance;
	// 订单备注
	@Column(name = "remark")
	private String remark;
	// 添加时间
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "user_base_id")
	private Long userBaseId;

	public String getRechargeNo() {
		return rechargeNo;
	}

	public void setRechargeNo(String rechargeNo) {
		this.rechargeNo = rechargeNo;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getUserBaseId() {
		return userBaseId;
	}

	public void setUserBaseId(Long userBaseId) {
		this.userBaseId = userBaseId;
	}
}